<%-- 
    Document   : loginerror
    Created on : Mar 16, 2012, 10:54:59 AM
    Author     : lsf
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
          <%

     String username=(String)session.getAttribute("username");
    if(username!=null)
        {
           
            session.removeAttribute("username");
            //response.sendRedirect("index.jsp?msg=logged out");
             response.sendRedirect("index.jsp");
        }
     else 
         {
         response.sendRedirect("index.jsp");
         
     }



%> 
    </body>
</html>
